package cc.admin.modules.sys.entity;

import cc.admin.common.sys.vo.TenantModel;
import cc.admin.poi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 部门机构关系表
 * @Author: shy
 * @Date:   2022-07-22
 * @Version: V1.0
 */
@Data
@TableName("sys_dept_org")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_dept_org对象", description="部门机构关系表")
public class SysDeptOrg extends TenantModel {

	/**主键id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键id")
	private String id;
	/**用户id*/
	@Excel(name = "部门id", width = 15)
    @ApiModelProperty(value = "部门id")
	private String deptId;
	/**角色id*/
	@Excel(name = "机构id", width = 15)
    @ApiModelProperty(value = "机构id")
	private String orgId;

	public SysDeptOrg() {

	}

	public SysDeptOrg(String deptId, String orgId) {
		this.deptId = deptId;
		this.orgId = orgId;
	}
}
